﻿using Share;
using UnityEngine;
using UnityEngine.UI;

namespace Tower.UI
{

    public class UI_Login : PanelBase
    {
        [SerializeField]
        Button m_Start;
       
        void Start()
        {
            m_Start.onClick.AddListener(() =>
            {
                BattleField.Instance.DoStart();
                OnCloseShow();
                DoCloseAction();
            });

           
        }

        private void OnEnable()
        {
            OnStartShow();
            AudioManager.Instance.StopBgm();
        }
         

    }

}
